﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Price.aspx.cs" Theme="Default" MasterPageFile="~/Design.Master"  Inherits="Resto55Business_WebRole.Price" %>

<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
    TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" runat="server">

    <div id="mainDiv" runat="server" >
   <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ODS_PRice"
            GridLines="None" SkinID="GridViewZeCloud">
            <Columns>
                <asp:BoundField DataField="dateSaisie" HeaderText="Date de saisie du prix " SortExpression="dateSaisie" />
                <asp:BoundField DataField="prix" HeaderText="prix" SortExpression="prix" DataFormatString="{0} €" />
                <asp:BoundField DataField="idAuteur" HeaderText="idAuteur" SortExpression="idAuteur"
                    Visible="false" />
                <asp:BoundField DataField="Timestamp" HeaderText="Timestamp" SortExpression="Timestamp"
                    Visible="false" />
                <asp:BoundField DataField="PartitionKey" HeaderText="PartitionKey" SortExpression="PartitionKey"
                    Visible="false" />
                <asp:BoundField DataField="RowKey" HeaderText="RowKey" SortExpression="RowKey" Visible="false" />
            </Columns>
        </asp:GridView>
        <asp:Label ID="Label1" runat="server" Text="Prix Moyen : " OnLoad="Label1_Load"></asp:Label>
        <asp:ObjectDataSource ID="ODS_PRice" runat="server" SelectMethod="GetPricesToDisplay"
            TypeName="Resto55Business_WebRole.ElementsToDisplay">
            <SelectParameters>
                <asp:QueryStringParameter Name="ElementId" QueryStringField="id" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>      
    </div>
</asp:Content> 